package com.gzist.blog_system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: 黄泽建
 * @TableName t_statistic
 */
@TableName(value ="t_statistic")
@Data
@ApiModel("文章统计模块")
public class Statistic implements Serializable {
    /**
     * 文章统计id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("文章统计id")
    private Long id;

    /**
     * 文章id
     */
    @TableField(value = "article_id")
    @ApiModelProperty("文章id")
    private Long articleId;

    /**
     * 文章点击量
     */
    @TableField(value = "hit")
    @ApiModelProperty("文章点击量")
    private Long hit;

    /**
     * 文章评论量
     */
    @TableField(value = "comment_num")
    @ApiModelProperty("文章评论量")
    private Long commentNum;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}